﻿<loki:ViewControl
    x:TypeArguments="lunavm:AccountListViewModel"
    xmlns:lunavm="clr-namespace:Luna.UI.Contacts;assembly=Luna.Core"
    xmlns:loki="clr-namespace:Loki.UI.Wpf;assembly=Loki.UI.Wpf"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" x:Class="Luna.UI.Contacts.Wpf.AccountListView"
    mc:Ignorable="d" 
    xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
    d:DesignHeight="500" d:DesignWidth="800">
    <DockPanel>
        <dxg:GridControl ItemsSource="{Binding Accounts}" x:Name="GRD_Accounts">
            <dxg:GridControl.Columns>
                <dxg:GridColumn Header="Nom" FieldName="Name" />
                <dxg:GridColumn Header="e-mail" FieldName="Mail"/>
                <dxg:GridColumn Header="Tél"  FieldName="PhoneNumber" >
                    <dxg:GridColumn.EditSettings>
                        <dxe:TextEditSettings MaskType="RegEx" Mask="(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*" MaskUseAsDisplayFormat="True"/>
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn Header="Adresse" FieldName="Address">
                </dxg:GridColumn>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView x:Name="VIEW_Accounts" ShowTotalSummary="True" AllowEditing="False" RowDoubleClick="TableView_RowDoubleClick"/>
            </dxg:GridControl.View>
        </dxg:GridControl>
    </DockPanel>
</loki:ViewControl>
